package com.accelstack.cmp.repository;

import com.accelstack.cmp.entity.Rack;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 机架Repository
 */
@Repository
public interface RackRepository extends JpaRepository<Rack, Long> {
    
    /**
     * 根据数据中心ID查询机架列表
     */
    List<Rack> findByDatacenterId(Long datacenterId);
}

